{template "header.html", "/"}

<div class="page-container">
    <img src="{THEME_PATH}party/images/banner.jpg" alt="" class="part">
    <div class="news">
        <div class="news-left">
            {navigator type=0}
            <a href="{$t.url"><img src="{dr_thumb($t.thumb)}" alt="" width="100%" height="100%"></a>
            {/navigator}
        </div>
        <div class="news-right">
            <div class="news-right-nav">
                <li>{dr_cat_value('news',1, 'name')}</li>
                <li>{dr_cat_value('news',5, 'name')}</li>
                <div class="news-more"><a href="{dr_cat_value('news',1, 'url')}"> 更多>> </a> </div>
            </div>
            <div class="news-right-list">
                {module module=news num=5 catid=1}
                <a href="{$t.url}">
                    <li>
                        <span>{$t.title}</span>
                        <div class="news-right-list-time">{dr_date($t._updatetime, 'm-d')}</div>
                    </li>
                </a>
                {/module}
            </div>
        </div>
    </div>
    <div class="mid">
        {category module=news pid=0 id=2,3,4 return=c}
        <div class="mid-box">
            <div class="mid-box-top">
                <div class="mid-box-top-left">
                    <img src="{THEME_PATH}party/images/redlogo.jpg" alt="">
                    <span>{$c.name}</span>
                </div>
                <div class="mid-box-top-right">
                    <a href="{$c.url}">更多>></a>
                </div>
            </div>
            {module module=news order=updatetime catid=$c.id}
            <a href="{$t.url}">
                <li>
                    <span class="sp">{$t.title}</span>
                    <div class="news-right-list-time">{$t.updatetime}</div>
                </li>
            </a>
            {/module}
        </div>
        {/category}
    </div>
    <div class="photo-banner">
        <div class="dangnav">
            {category module=news id=6 return=photos}
            <li>{$photos.name}</li>
            {/category}
            <div class="news-more"><a href="{$photos.url}"> 更多 </a>></div>

        </div>


        <div class="photo">
            {module module=news order=updatetime catid=$photos.id return=p}
            <div class="ph-img">
                <a href="{$p.url}">
                    <img src="{dr_thumb($p.thumb)}" alt="">
                    <div class="ph-img-bt">党员风采</div>
                </a>
            </div>
            {/module}
        </div>
        <!-- <div class="prev"></div>
            {module module=photo order=updatetime catid=$photos.id return=p}
            <a href="{$p.url}">
                <img src="{dr_thumb($p.thumb)}" alt="" width="30%" height="100%">
            </a>
            {/module}
            <div class="next"></div> -->
    </div>

    <div class="go">
        友情链接:
        <div class="sel">
            <select class="float_l bot" onchange="javascript:window.open(this.options[this.selectedIndex].value)">
                <option value="" selected="selected"> --- 各高校实验中心网站 --- &nbsp;&nbsp;</option>
                <option value="http://swx.hzau.edu.cn/">华中农业大学虚拟仿真实验教学中心</option>
            </select>
        </div>
        <div class="sel">
            <select class="float_l bot" onchange="javascript:window.open(this.options[this.selectedIndex].value)">
                <option value="" selected="selected"> --- 各高校实验中心网站 --- &nbsp;&nbsp;</option>
                <option value="http://swx.hzau.edu.cn/">华中农业大学虚拟仿真实验教学中心</option>
            </select>
        </div>
        <div class="sel">
            <select class="float_l bot" onchange="javascript:window.open(this.options[this.selectedIndex].value)">
                <option value="" selected="selected"> --- 各高校实验中心网站 --- &nbsp;&nbsp;</option>
                <option value="http://swx.hzau.edu.cn/">华中农业大学虚拟仿真实验教学中心</option>
            </select>
        </div>
        <div class="sel">
            <select class="float_l bot" onchange="javascript:window.open(this.options[this.selectedIndex].value)">
                <option value="" selected="selected"> --- 各高校实验中心网站 --- &nbsp;&nbsp;</option>
                <option value="http://swx.hzau.edu.cn/">华中农业大学虚拟仿真实验教学中心</option>
            </select>
        </div>
    </div>
</div>
<script src="{THEME_PATH}party/js/slider-x.js"></script>
<script>
    $('.photo').pageflySlider({
        slidesToShow: 4,
        slidesToScroll: 1,
        gutter: 0,
        autoPlay: false,
        duration: '0',
        autoPlayDelay: 2000,
        loop: true,
        draggable: false,
        navStyle: 'nav-style-111',
        paginationStyle: 'pagination-style-3'
    })
    let isok = false
    if ($('.photo')[0].childElementCount < 4) {
        $('.pf-next-nav')[0].style = "display: none"
        $('.pf-prev-nav')[0].style = "display: none"
    }
</script>

{template "footer.html", "/"}